import {PromisePageResponse, PromiseResponse} from "@/service/api/type.ts";
import request from "@/service/request.ts";
import {ClientReportVo} from "@/service/api/system/report/types.ts";

/**
 * 获取举报列表
 * @param query
 */
const getReportList = (query: any): PromisePageResponse<ClientReportVo> => {
  return request({
    url: "/client/report/list",
    method: "get",
    params: query,
  });
};

/**
 * 获取问题
 * @param id
 */
const getReportDetail = (id: string): PromiseResponse<ClientReportVo> => {
  return request({
    url: `/client/report/${id}`,
    method: "get",
  });
};

export {
  getReportList,
  getReportDetail,
};
